package org.service;

import org.domain.Product;
import org.persistent.SearchAjaxDAO;
import org.persistent.impl.SearchAjaxDAOImpl;

import java.util.List;

public class SearchAjaxService {

    private SearchAjaxDAO searchAjaxDAO;

    public SearchAjaxService(){
        searchAjaxDAO = new SearchAjaxDAOImpl();
    }
    public List<String> findPetsAjax(String name) {
        List<String> nameList= searchAjaxDAO.findPetsAjax(name);

        return nameList;
    }
}
